import request from '@/utils/request'

// 查询零件类型列表
export function listClassificationPart(query) {
  return request({
    url: '/quality/classificationPart/list',
    method: 'get',
    params: query
  })
}

// 查询零件类型列表
export function listAllClassificationPart(query) {
  return request({
    url: '/quality/classificationPart/listAll',
    method: 'get',
    params: query
  })
}

// 查询零件类型详细
export function getClassificationPart(id) {
  return request({
    url: '/quality/classificationPart/' + id,
    method: 'get'
  })
}

// 新增零件类型
export function addClassificationPart(data) {
  return request({
    url: '/quality/classificationPart',
    method: 'post',
    data: data
  })
}

// 修改零件类型
export function updateClassificationPart(data) {
  return request({
    url: '/quality/classificationPart',
    method: 'put',
    data: data
  })
}

// 删除零件类型
export function delClassificationPart(id) {
  return request({
    url: '/quality/classificationPart/' + id,
    method: 'delete'
  })
}
